package com.kuangstudy.operator;

/**
 * ClassName: Demo2
 * date: 2021/7/9/009
 *
 * @author zlk
 */
public class Demo2 {
     public static void main(String[] args) {
        /**
         * int b = a;
         * a = a+1;
         * a = a+1;
         * int c = a;
         */
        int a = 3;
        int b = a++;
        int c = ++a;
        System.out.println(a);//5
        System.out.println(b);//3
        System.out.println(c);//5
    }
}
